import { defineStore } from "pinia";
import { ref, reactive } from "vue"
export const channelListStore = defineStore("channelListStoreId", () => {
    const detailData = ref([
        {
            type: "text",
            prop: "channelKey",
            name: "渠道Key",
            value: null
        },
        {
            type: "text",
            prop: "channelCode",
            name: "渠道编码",
            value: null
        },
        {
            type: "text",
            prop: "channelName",
            name: "渠道名称",
            value: null
        },
        {
            type: "text",
            prop: "channelMerchantCode",
            name: "渠道商",
            value: null
        },
        {
            type: "text",
            prop: "mobile",
            name: "手机号",
            value: null
        },
        {
            type: "text",
            prop: "auditStatus",
            name: "审核状态",
            value: null
        },

        {
            type: "text",
            prop: "remarks",
            name: "备注",
            value: null
        }

    ])
    const tableProp = reactive(
        {
            name: "supplierList",
            propsList: [
                {
                    label: '渠道Key',
                    prop: 'channelKey',
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    label: '渠道名称',
                    prop: 'channelName',
                    type: 'copy',
                    minWidth: '200px',
                    hidden: true,
                },
                {
                    label: '渠道编码',
                    prop: 'channelCode',
                    type: 'copy',
                    width: '290px',
                    hidden: true,
                },
                {
                    label: '快速复制',
                    prop: '',
                    type: 'custom',
                    width: '100',
                    slotName:'quickCopy',
                    hidden: true,
                },
        
                {
                    label: '渠道商名称',
                    prop: 'channelMerchantName',
                    type: 'normal',
                    minWidth: '120px',
                    hidden: true,
                },
                {
                    label: '渠道商编码',
                    prop: 'channelMerchantCode',
                    type: 'normal',
                    minWidth: '120px',
                    hidden: true,
                },

                {
                    label: '手机号',
                    prop: 'mobile',
                    type: 'normal',
                    minWidth: '110px',
                    hidden: true,
                },
                {
                    label: '审核状态',
                    prop: 'auditStatus',
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    label: '审核时间',
                    prop: 'auditTime',
                    type: 'normal',
                    width: '160px',
                    hidden: true,
                },
                {
                    label: '备注',
                    prop: 'remarks',
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },


                {
                    type: 'handle',
                    label: '操作',
                    minWidth: '270px',
                    btnType: ' link',
                    slotName: 'handle',
                    hidden: true,
                }
            ]
        })

    return {
        detailData, tableProp
    }
})